/**
 * 
 */
package com.planner.core.action.node.file;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.juli.logging.Log;
import org.apache.juli.logging.LogFactory;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.planner.core.action.node.form.MultipleNodeDetailsForm;
import com.planner.core.dao.stub.SetUpUtil;

/**
 * @author Sangharsh
 *
 */
public class ValidateNodeFileAction extends AbstractNodeFileAction {
	
	private static final Log LOG = LogFactory.getLog(ValidateNodeFileAction.class);

	private static final String DELIMITER = "[|]";
	
	/* (non-Javadoc)
	 * @see com.planner.core.action.core.AbstractBaseAction#execute(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
	 */
	@Override
	public ActionForward execute(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response) {
		MultipleNodeDetailsForm detailsForm = (MultipleNodeDetailsForm)form;		

		detailsForm.setNodes(SetUpUtil.getNodeDetailsForm());
		return mapping.findForward(SUCCESS_FORWARD);
	}
}
